package com.ssmTest.dao;

import com.ssmTest.model.SecondHand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ISecondHandDao {
    List<SecondHand> SecondHandList(int toexamine);
    SecondHand selectSecondHand(int id);
    void insertSecondHand(SecondHand secondHand);
    void updateInformation(SecondHand secondHand);

    //关键字查询
    List<SecondHand> selectSecondByAndName(@Param("start")int start, @Param("end")int end, @Param("city")String city, @Param("name")String name);

    List<SecondHand> selectSecondByNoName(@Param("start")int start,@Param("end")int end,@Param("city")String city);

    List<SecondHand> selectByPersionalId(int personal_id);
}
